#ifndef Average_h
#define Average_h

class Average {
	public:
		int average, min, max;
		int averageWithValue(int);
		void addValue(int);
		void init(int);
	private:
		int count, samples;
		long currentSum, lastSum;
};

Average* newAverageWithSampleSize(int);

#endif

